<template>
  <el-container>
    <el-header>
      <div class="top_box xq">
        <img
          style="cursor: pointer"
          @click="webopen()"
          src="../../assets/image/logo.png"
          alt=""
        />
      </div>
      <div class="title_bj_box xq zjxq_item_box"></div>
    </el-header>
    <el-main>
      <div class="xq_box">
        <div class="xq_tag_box back">
          <div class="xq_tab">{{ form.name }}</div>
          <div class="back_box" @click="back()">返回</div>
        </div>
        <div class="item_box">
          <div class="item_box_title">专家单位：{{ form.company }}</div>
          <div class="item_box_nr">
            <div class="left_item">
              <el-descriptions :column="1" border>
                <el-descriptions-item
                  label-class-name="my-label"
                  label="姓名："
                  >{{ form.name }}</el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="my-label"
                  label="性别："
                  v-if="form.gender == 1"
                  >男
                </el-descriptions-item>
                <el-descriptions-item
                  label-class-name="my-label"
                  label="性别："
                  v-if="form.gender == 0"
                  >女
                </el-descriptions-item>
                <el-descriptions-item
                  label-class-name="my-label"
                  label="民族："
                  >{{ form.nation }}</el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="my-label"
                  label="政治面貌："
                  >{{ form.political }}</el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="my-label"
                  label="职务/职称："
                  >{{ form.duties }}</el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="my-label"
                  label="学历："
                  >{{ form.education }}</el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="my-label"
                  label="类别："
                  >{{ form.categorys }}</el-descriptions-item
                >
                <!-- <el-descriptions-item
                  label-class-name="my-label"
                  label="手机号："
                  >{{ form.mobile }}</el-descriptions-item
                > -->
              </el-descriptions>
            </div>
            <div class="right_item">
              <div class="right_img_box">
                <img :src="$self.imgurl(form.avatar)" alt="" />
              </div>
              <!-- <div class="right_text">
                  <span
                    >土地估价专业人员资格证书号：
                    {{ form.land_valuation_code }}</span
                  >
                </div> -->
            </div>
          </div>
        </div>
      </div>
    </el-main>
    <el-footer>
      <foot></foot>
    </el-footer>
  </el-container>
</template>
    
    <script>
import tab from "../../components/tab.vue";
import foot from "../../components/foot.vue";
import env from "@/../env.js";

export default {
  data() {
    return {
      form: {},
      url: env.API_BASE_URL,
    };
  },
  components: {
    tabVue: tab,
    foot: foot,
  },
  mounted() {
    this.getinfo();
  },
  methods: {
    /**
     * 获取列表
     */
    getinfo() {
      let that = this;
      let data = {
        id: this.$router.currentRoute.query.id,
      };
      // console.log(JSON.stringify(data))
      that.$http.post("expert/detail", data).then((res) => {
        that.form = res.data;
      });
    },
    webopen() {
      window.open(this.url);
    },
    back() {
      this.$router.go(-1);
    },
    //  ==
  },
};
</script>
    <style >
.el-header {
  margin: 0%;
  padding: 0;
  height: auto !important;
  width: auto;
}
.el-card__body,
.el-main {
  margin: 0%;
  padding: 0%;
  min-height: calc(100vh - 7.22rem);
}
.top_box {
  background-image: url("../../assets/image/首页顶部背景.jpg");
  background-size: 100% 100%;
  height: 1.75rem;
  width: 100%;
  display: flex;
  align-items: center;
}
.top_box img {
  width: 10rem;
  margin-left: 4.3rem;
}
.zjxq_item_box .title_bj_box {
  background-image: url("../../assets/image/2f76a6a5ed5416122abcda8e6ae6529.png");
  background-size: 100% 100%;
  height: 2rem !important;
}
.xq_box {
  width: 15rem;
  background: #ffffff;
  border-radius: 0.125rem;
  margin: 0.75rem auto 1.25rem;
  box-shadow: 1px 1px 3px 2px rgba(0, 0, 0, 0.15);
}
.xq_tag_box {
  border-bottom: solid 0.0375rem #1954a4;
  display: flex;
  align-items: center;
  height: 0.75rem;
  padding-left: 0.25rem;
  box-sizing: border-box;
}
.xq_tab {
  border-left: solid 0.075rem #1954a4;
  font-size: 20px;
  font-weight: 400;
  color: #1954a4;
  padding-left: 0.2125rem;
  box-sizing: border-box;
}
.item_box {
  padding: 0.4125rem 0.2375rem;
}
.item_box_title {
  height: 40px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background: #1954a4;
  padding-left: 0.3375rem;
  box-sizing: border-box;
  letter-spacing: 0.021rem;
  display: flex;
  align-items: center;
}
.item_box_nr {
  display: flex;
}
.left_item {
  flex: 1;
}
.right_item {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.right_img_box {
  width: 179px;
  height: 235px;
  background: #1954a4;
  margin: auto;
}
.right_img_box img {
  width: 100%;
  height: 100%;
}
.right_text {
  font-size: 0.173rem;
  font-weight: 400;
  color: #333333;
  display: flex;
  align-items: center;
  padding-left: 0.2125rem;
  height: 0.575rem;
  background: #ffffff;
  border: 1px solid #f2f2f2;
}
.my-label {
  width: 2.5rem;
  text-align: center !important;
  border-right: none !important;
  background: #fff !important;
  font-size: 16px;
  color: #333 !important;
}
.left_item tbody:nth-child(even) {
  background: #f2f2f2 !important;
}
.left_item
  tbody:nth-child(even)
  .el-descriptions-item__label.is-bordered-label {
  background: #f2f2f2 !important;
}
.left_item tbody td {
  border-left: none !important;
  font-size: 16px;
  color: #333 !important;
}
.left_item .el-descriptions .is-bordered .el-descriptions-item__cell {
  padding: 0.15rem 0.125rem;
}
</style>
<style scoped>
.back {
  display: flex;
  justify-content: space-between;
  padding-right: 0.35rem;
}
.back_box {
  font-size: 18px;
  color: #1954a4;
  cursor: pointer;
}
</style>
    